Page({
  data: {
    indicatorDots: true,
    circular: true,
    vertical: false,
    autoplay: true,
    interval: 100,
    duration: 0,

    testLoadingLayer: true,
    testLoadingLayerBg:false,
    widthProgress: 0,

    moreToolList: [
      {
        id: 0,
        title: "完美身材",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-66611611564800853.png",
        desc: "完美身材"
      },
      {
        id: 1,
        title: "要挂柯南",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-42261611564813705.png",
        desc: "要挂柯南"
      },
      {
        id: 2,
        title: "无痘星人",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-80861611564821763.png",
        desc: "无痘星人"
      },
      {
        id: 3,
        title: "拒绝秃头",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-63231611564829359.png",
        desc: "拒绝秃头"
      },
      {
        id: 4,
        title: "吃遍河山",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-92821611564841114.png",
        desc: "吃遍河山"
      },
      {
        id: 5,
        title: "快乐脱单",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-79511611564851314.png",
        desc: "快乐脱单"
      },
      {
        id: 6,
        title: "升职加薪",
        bg: "https://fcdn.qiushilaile.com/adx/qualificationMaterials-19401611564859553.png",
        desc: "升职加薪"
      }
    ],
    flag: true
  },
  onLoad: function () {
    setTimeout(() => {
      this.setData({
        testLoadingLayer: false
      })
    }, 4000)
    setTimeout(() => {
      this.setData({
        testLoadingLayerBg: true
      })
    }, 500)
  },
  onShow: function () {
tt.setStorageSync('g_id', 'flag');
  },
  extractClick() {
    this.setData({
      interval: 0,
      flag: false
    })
  },
  backClick() {
    tt.navigateBack();
  },
  againClick() {
    this.setData({
      interval: 100,
      flag: true
    })
  },
  newYearFlagTwoClick(e) {
    var bg = e.currentTarget.dataset.bg
    var desc = e.currentTarget.dataset.desc
    tt.navigateTo({
      url: `/pages/newYearFlag-two/newYearFlag-two?bg=${bg}&desc=${desc}`
    });
  }
});